package com.wanmait.employment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
* Created by Mybatis Generator 2023/05/19
*/
@Data
@TableName(value = "educational_experience")
public class EducationalExperience {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField(value = "userinfo_id")
    private Integer userinfoId;

    @TableField(value = "userinfo",exist = false)
    private Userinfo userinfo;
    /**
     * 大学名称
     */
    @TableField(value = "college_name")
    private String collegeName;

    /**
     * 学历
     */
    @TableField(value = "education")
    private String education;

    @TableField(value = "full_time")
    private Integer fullTime;

    /**
     * 专业
     */
    @TableField(value = "major")
    private String major;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

//学历id
    @TableField(value = "recruitment_id")
    private Integer recruitmentId;


    /**
     * 假删
     */
    @TableField(value = "enable")
    private Boolean enable;

    public static final String COL_USERINFO_ID = "userinfo_id";

    public static final String COL_COLLEGE_NAME = "college_name";

    public static final String COL_EDUCATION = "education";

    public static final String COL_MAJOR = "major";

    public static final String COL_START_TIME = "start_time";

    public static final String COL_END_TIME = "end_time";

    public static final String COL_ENABLE = "enable";
}